package com.gxa.employment.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * VIEW
 *
 * @author xdr
 * @since 2025-04-01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("v_emp_detail")
  public class EmpDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 就业ID
     */
    @TableField("emp_id")
    private Integer empId;

    /**
     * 学生ID
     */
    @TableField("stu_id")
    private Integer stuId;

    /**
     * 姓名
     */
    @TableField("stu_name")
    private String stuName;

    /**
     * 企业ID
     */
    @TableField("ent_id")
    private Integer entId;

    /**
     * 企业名称
     */
    @TableField("ent_name")
    private String entName;

    /**
     * 岗位ID
     */
    @TableField("job_id")
    private Integer jobId;

    /**
     * 岗位名称
     */
    @TableField("job_title")
    private String jobTitle;

    /**
     * 就业类型:实习,全职
     */
    @TableField("emp_type")
    private String empType;

    /**
     * 就业方式:自主就业,推荐就业
     */
    @TableField("emp_method")
    private String empMethod;

    /**
     * 就业标签;正常就业，超时就业，高薪就业
     */
    @TableField("emp_tag")
    private String empTag;

    /**
     * 就业薪资
     */
    @TableField("emp_salary")
    private Double empSalary;

    /**
     * 入职时间
     */
    @TableField("emp_end_start")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private LocalDate empEndStart;

    /**
     * 就业结束时间;因为推迟可能数据会改变
     */
    @TableField("emp_end")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private LocalDate empEnd;

    /**
     * 创建时间
     */
    @TableField("emp_created")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime empCreated;
}
